<template>
	<view class="" style="background-color: #d70127;">
		<view class="content">
			<view class="df-sb" style="justify-content: center;">
				<image src="/static/image/index_text1.png" mode="widthFix" style="width: 500rpx;"></image>
			</view>
			<view class="" style="display: flex;justify-content: center;margin-top: 110rpx;">
				<image src="/static/image/infoText.png" mode="widthFix" class="indexText"></image>
			</view>
			<view class="box">
				<view class="boxItem" @click="$navTo('/pages/promCode')" v-if="userInfo.userType==1">
					<image src="/static/image/tuiImg1.png" mode=""></image>
					<view class="itemTitle"> 我的专属推广码 </view>
				</view>
				<view class="boxItem" @click="$navTo('/pages/promStaff')" v-if="userInfo.userType==1">
					<image src="/static/image/tuiImg2.png" mode=""></image>
					<view class="itemTitle"> 我推广的人员 </view>
				</view>
				<view class="boxItem" @click="$navTo('/pages/promIncome')">
					<image src="/static/image/tuiImg3.png" mode=""></image>
					<view class="itemTitle"> 我的钱包 </view>
				</view>
				<view class="boxItem" @click="$navTo('/pages/withRecord')">
					<image src="/static/image/tuiImg4.png" mode=""></image>
					<view class="itemTitle"> 提现记录 </view>
				</view>
				<view class="boxItem" @click="$navTo('/pages/promSetting')">
					<image src="/static/image/tuiImg5.png" mode=""></image>
					<view class="itemTitle"> 申请提现 </view>
				</view>
				<view class="boxItem" @click="$navTo('/pages/editInfo')">
					<image src="/static/image/tuiImg6.png" mode=""></image>
					<view class="itemTitle"> 个人信息 </view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	import {} from '../request/api.js'
	export default {
		data() {
			return {
				userInfo: {}
			}
		},
		onLoad() {},
		onShow() {
			this.userInfo = uni.getStorageSync('userInfo')
		},
		methods: {}
	}
</script>
<style lang="scss">
	.content {
		height: 100vh;
		background: url('/static/image/bg.png') no-repeat center center;
		background-size: 100% 100%;
		padding: 80rpx 30rpx;
		padding-bottom: 200rpx;
		overflow: hidden;

		.backIcon {
			margin-top: 50rpx;
		}

		.box {
			margin-top: 100rpx;
			display: flex;
			flex-wrap: wrap;
			// justify-content: space-between;
			background-color: #d70127;

			.boxItem {
				margin-top: 20rpx;
				width: 33%;
				height: 200rpx;
				border-radius: 20rpx;
				justify-content: center;
				font-size: 32rpx;
				align-items: center;
				display: flex;
				flex-direction: column;

				image {
					width: 120rpx;
					height: 120rpx;
				}

				.itemTitle {
					font-size: 32rpx;
					color: #FDE8CE;
					margin-top: 30rpx;
				}
			}
		}
	}
</style>